import React from "react";
import "./index.less"
import { http } from "@/utils/request";
import api from "@/utils/api";
class Bank extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      bankName:'',
      accNo:'',
    };
  }

  componentWillMount() {
    http.post(api.getStaffItemByOpenId).then(res=>{
      this.setState({
        ...res.data
      })
    })
  }

  render() {
    return (
      <div className="bank">
        <div className="bankMsg col-fff">
          <div className="ft-18">{this.state.bankName}</div>
          <div className="ft-20 mt-10">{this.state.accNo}</div>
        </div>
      </div>
    );
  }
}

export default Bank;
